package com.example.service;

import java.util.List;
import java.util.Map;

import com.example.domain.AskForLeave;
import com.example.result.Result;

public interface AskForLeaveService {

    Result addAskForLeave(AskForLeave askForLeave);//添加请假信息

    Result updateAskForLeave(AskForLeave askForLeave);//更新请假信息

    Result deleteAskForLeaveById(String askId);//根据请假编号删除请假信息

    Result queryAllAskForLeave();//查询所有请假信息

    Result queryAskForLeaveById(String askId);//根据编号查询请假信息

    Result addAskForLeaveByExcel(List<AskForLeave> list);//通过Excel批量添加请假信息

    Result deleteAskForLeaveByIds(Map<String, String> ids);//根据请假编号批量删除请假信息

    Result serachByInfo(String[] info);//请假信息模糊查询

    Result queryAllStudentInfo();//查询所有学生信息

    Result queryAllStudentAndAskForLeaveInfo();//查询所有学生请假信息

    Result selectAskForLeaveByUserId(Integer userId);//根据学生ID查询学生请假信息

}
